refactor: migrate UI to Material 3 with unified Material Symbols icons - #370
Merged
Conversation
Resources-only refresh (no logic changes): - Migrate Theme.Numo (light + dark) to Theme.Material3.DayNight with a full M3 color role set generated from the numo_green (#00C244) seed via HCT tonal palettes (m3_* tokens in colors.xml) - Keep the app's neutral surfaces, edge-to-edge system bars, custom keypad attrs and the ThemeManager POS themes intact - Re-parent component styles to M3 (buttons, TextInputLayout, snackbar, dialogs, popup menus, toolbars, bottom sheets); 28dp M3 corners for dialogs and modal bottom sheets - Replace 80 ad-hoc icons with official Material Symbols outlined vectors under the same resource names (fill tokens and sizes preserved so untinted usages render identically) - Convert ic_language and contactless PNGs to vectors (now day/night tinted); drop unused ic_lightning.png - Keep brand/third-party assets untouched (wordmark, launcher, Nostr / Telegram / X logos, status dots, success badge) - Swap 5 inline M2 button style refs in layouts to M3 equivalents (1:1, no ID/structure changes) Verified: assembleDebug, testDebugUnitTest (all pass), lintDebug (no new issues vs baseline)
Replace all hardcoded dp corner radii in the shared shape drawables with @dimen/radius_* tokens. Values unchanged (16/28/12/26/100/18/20/ 8dp map to existing tokens; adds radius_micro=2dp, radius_xs=4dp, radius_badge=6dp, radius_s=10dp, radius_button_compact=14dp, radius_xl=24dp for the remainder). Zero visual change.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Resources-only UI refresh (zero Kotlin/Java changes — all payment, wallet, and POS logic untouched). Migrates the app to Material 3 with a brand-derived color scheme and replaces the mixed icon set with a unified Material Symbols (outlined) set.
🎨 Material 3 theming
Theme.Numo(light + dark) now extendsTheme.Material3.DayNight.NoActionBarprimary/secondary/tertiary/error+ containers,surfaceVariant,outline,surfaceContainer*, inverse roles) generated as an HCT tonal palette from thenumo_green(#00C244) seed — same engine as Material Theme BuilderTextInputLayout, snackbar, dialogs, popup menus, toolbars, modal bottom sheets🔲 Icons
ic_bitcoin→ realcurrency_bitcoin₿,ic_quick_charge→dialpad(matches its actual 3×3 glyph),ic_open_with→share,ic_tip→paidic_language.png/contactless.png→ vectors (now correctly tinted in dark mode); unusedic_lightning.pngremovedHousekeeping
Widget.MaterialComponents.Button.*style refs swapped to M3 equivalents (1:1 — no ID or structural changes, ViewBinding unaffected)Verification
./gradlew assembleDebug./gradlew testDebugUnitTest— all tests pass./gradlew lintDebug— no new issues vs. baselineTheme.Material3descends fromTheme.AppCompat(safe for all existing activities)Test plan